package com.chb.service;


import com.chb.entities.CommonResult;
import com.chb.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaykmentFeignService {
//    CommonResult<Payment> getPaymentById(long id);
    @GetMapping(value = "/payment/get/{id}")
    public CommonResult<Payment> getPaymetnById(@PathVariable("id") long id);

    @GetMapping(value = "/payment/feign/timeout")
    public String getPaymentFeignTimeOut() ;

}
